<?php
/**
 * Text element
 *
 */
class ArrowFormSubmit extends ArrowFormField{
	
	protected $properties = array(
	);
	
	public function init(){
		parent::init();
		$jsData = array();
		$this->registerJs( get_class($this), dirname(__FILE__)."/ArrowFormSubmit.js", ".ctrl-form-submit-".$this->getId(), $jsData );
	}
	
	public function validate( $proposedValue ){
		return true;
	}
	
	public function generateOutput(){
		$attribuites = array();
		$attribuites["name"] = $this->getHtmlName();
		$attribuites["value"] = $this->getValue();
		$attribuites["class"] = "ctrl-form-submit-".$this->getId()." ".$this->getEventClass();
		return '<input type="submit" '.$this->genTagsFromArray($attribuites).' '.$this->addExternal().'/>';
	}


}
?>